package com.medicine.common;

/**
 * 结果返回类
 * Created by Guyver.com on 2017/10/27 14:45.
 */
public class Result {
    private Object data;
    private String message;
    private Integer code;   //0：正常，1：业务出错，2：系统出错。

    public Result() {
    }

    public Result(Object data, String message, Integer code) {
        this.data = data;
        this.message = message;
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
